<?php
include "../config/koneksi.php";
include "../class/toko.php";

if (ISSET($_GET["id_toko"])){
$id_toko=$_GET["id_toko"];
}
$Toko_Dao = new Toko_Dao();
$toko=$Toko_Dao->get($id_toko);
?>

<div align="center"></div>
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr >
    <td height="30"> 
      <div align="left"><font size="3" face="tahoma">Data Toko</font><hr color=#CCCCFF></div></td>
    </tr>
  </table>
<table width="100%" border="0" bordercolor="#666666" bgcolor="#FFFFFF">
  <tr valign="middle" bordercolor="#FFFFFF"> 
    <td colspan="3"><div align="left"></div></td>
  </tr>
  <tr>
    <td valign="top">
    	<table width="100%" border="0" bordercolor="#000000">
  
          <tr bordercolor="#FFFFFF"> 
          	<td valign="top" width="25%"><font size="2" face="tahoma">Toko</font></td>
          	<td valign="top" width="2%"><font size="2">:</font></td>
          	<td valign="top" width="73%"><font face="tahoma" size="2"><?php echo"$toko->nama_toko";?></font></td>
          </tr>
          <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Alamat</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><?php echo"$toko->alamat";?></font></td>
          </tr>
          <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Kota</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top" align=justify><font size="2" face="tahoma"><?php echo"$toko->kota";?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Kode Pos</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top" align=justify><font size="2" face="tahoma"><?php echo"$toko->kodepos";?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Telepon / HP</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top" align=justify><font size="2" face="tahoma"><?php echo"$toko->telp";?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Email</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top" align=justify><font size="2" face="tahoma"><?php echo"$toko->email";?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Rekening Bank</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top" align=justify><font size="2" face="tahoma"><?php echo"$toko->nama_bank";?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Atas Nama</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top" align=justify><font size="2" face="tahoma"><?php echo"$toko->atas_nama";?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Nomor Rekening</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top" align=justify><font size="2" face="tahoma"><?php echo"$toko->rek";?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Deskripsi Toko</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top" align=justify><font size="2" face="tahoma"><textarea cols=50 rows=5><?php echo"$toko->deskripsi_toko";?></textarea></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Tanggal Mendaftar</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top" align=justify><font size="2" face="tahoma"><?php echo"$toko->tgl_daftar";?></font></td>
          </tr>
          
		</table>
	</td>
		<?php 
		echo"</tr></table>";
?>
<br>
<table width=45% align=center>
<tr>
<td><a href=index.php?menu=view_toko><input type=submit value=Back></a></td>
</tr></table>